
Vue.use(vant.Lazyload);
var index = new Vue({
	el: "#app",
	data() {
		return {
			item: '数据',
			images: [
				'../../template/static/img/index_img/banner.png',
				'../../template/static/img/index_img/banner.png',
			],
			list: [{
				id: 1,
				img: '../../template/static/img/index_img/index1.png',
				text: '培元灸'
			}, {
				id: 2,
				img: '../../template/static/img/index_img/index2.png',
				text: '砭石方灸'
			}, {
				id: 3,
				img: '../../template/static/img/index_img/index3.png',
				text: '培元视界'
			}, {
				id: 4,
				img: '../../template/static/img/index_img/index4.png',
				text: '体态管理'
			}, ],
			Data: [{
					id: 0,
					img: '../../template/static/img/1.jpg',
					text: '准上人关热与相青音铁构素法百科单',
					text2: '15.3'
				},
				{
					id: 1,
					img: '../../template/static/img/1.jpg',
					text: '准上人关热与相青音铁构素法百科单',
					text2: '15.3'
				},
				{
					id: 2,
					img: '../../template/static/img/1.jpg',
					text: '准上人关热与相青音铁构素法百科单',
					text2: '15.3'
				},
				{
					id: 3,
					img: '../../template/static/img/1.jpg',
					text: '准上人关热与相青音铁构素法百科单',
					text2: '15.3'
				},
			]
		}
	},
	//计算属性
	computed: {},
	//监听属性
	watch: {},
	//钩子函数
	created() {
		// this.ceshi()
	},
	mounted() {},
	methods: {
		// async ceshi() {
		// 	let res = await api.get(ceshi);
		// 	console.log('成功了', res);
		// },
		details(id) { //商品详情
			console.log(id);
			window.location.href = "details.html?id=" + id
		},
		click_tab(id) { //tab切换
			window.location.href = "category.html?id=" + id
		},
		add_car: function() {
			window.location.href = "the_shopping_cart.html"
		}
	}
})
